home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / ICProgKit 1.3.sit / ICProgKit1.3 / APIs / ICAPI.h next >
Text File  |  1996-07-15  |  25KB  |  546 lines

  1. /* ・・・Start Header・・・ */
  2.  
  3. /* File:         ICAPI.h (intf)
  4.  * Generated by: 1.0d4
  5.  * For:          IC 1.3
  6.  * On:           Sunday, 14 July 1996, 20:19:55
  7.  * 
  8.  * This file is part of the Internet Configuration system and
  9.  * is placed in the public domain for the benefit of all.
  10.  */
  11.  
  12. /* ・・・End Header・・・ */
  13.  
  14. /*
  15.     IMPORTANT NOTES ABOUT THE C CONVERSION
  16.     --------------------------------------
  17.     
  18.     o Pascal "var" parameters are converted from "var x : y" to "y *x".  This
  19.       means that when you see the parameter "y *x" you should be aware that
  20.             you *cannot pass in nil*.  In future this restriction may be eased,
  21.             especially for the attr parameter to ICGetPref.  Parameters where nil
  22.             is legal are declared using the explicit pointer type, ie "yPtr x".
  23.  
  24.     o Strings are *Pascal* strings.  This means that they must be word aligned.
  25.         MPW and Think C do this automatically.  The last time I check, Metrowerks
  26.         C does not.  If it still doesn't, then IMHO it's a bug in their compiler
  27.         and you should report it to them.
  28.  
  29.     o The canonical Internet Config interface is defined in Pascal.  These
  30.         headers have not been thoroughly tested.  If there is a conflict between
  31.         these headers and the Pascal interfaces, the Pascal should take precedence.
  32. */
  33.  
  34. /* ///////////////////////////////////////////////////////////////////////////////// */
  35.  
  36. #ifndef __ICAPI__
  37. #define __ICAPI__
  38.  
  39. #ifndef __TYPES__
  40. #include <Types.h>
  41. #endif
  42.  
  43. #ifndef __FILES__
  44. #include <Files.h>
  45. #endif
  46.  
  47. #ifndef __ICTYPES__
  48. #include "ICTypes.h"
  49. #endif
  50.  
  51. #ifndef __ICKEYS__
  52. #include "ICKeys.h"
  53. #endif
  54.  
  55. /* ///////////////////////////////////////////////////////////////////////////////// */
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. /* ・・・Start ICAPI.h・・・ */
  62.  
  63. /* ***** Starting Up and Shutting Down ***** */
  64.  
  65. pascal ICError ICStart(ICInstance *inst, OSType creator);
  66.   /* Call this at application initialisation. Set creator to your application
  67.    * creator to allow for future expansion of the IC system. Returns
  68.    * inst as a connection to the IC system.
  69.    */
  70.  
  71. pascal ICError ICStop(ICInstance inst);
  72.   /* It is illegal to call this routine inside a ICBegin/End pair.
  73.    * Call this at application initialisation, after which inst
  74.    * is no longer valid connection to IC.
  75.    */
  76.  
  77. /* ***** Specifying a Configuration ***** */
  78.  
  79. pascal ICError ICFindConfigFile(ICInstance inst, short count, ICDirSpecArrayPtr folders);
  80.   /* It is illegal to call this routine inside a ICBegin/End pair.
  81.    * Call to configure this connection to IC.
  82.    * Set count as the number of valid elements in folders.
  83.    * Set folders to a pointer to the folders to search.
  84.    * Setting count to 0 and folders to nil is OK.
  85.    * Searches the specified folders and then the Preferences folder
  86.    * in a unspecified manner.
  87.    */
  88.  
  89. pascal ICError ICFindUserConfigFile(ICInstance inst, ICDirSpec *where);
  90.   /* Requires IC 1.1.
  91.    * It is illegal to call this routine inside a ICBegin/End pair.
  92.    * Similar to ICFindConfigFile except that it only searches the folder
  93.    * specified in where.  If the input parameters are valid the routine
  94.    * will always successful configure the instance, creating an
  95.    * empty configuration if necessary
  96.    * For use with double-clickable preference files.
  97.    */
  98.  
  99. pascal ICError ICGeneralFindConfigFile(ICInstance inst, Boolean search_prefs, Boolean can_create, short count, ICDirSpecArrayPtr folders);
  100.   /* Requires IC 1.2.
  101.    * It is illegal to call this routine inside a ICBegin/End pair.
  102.    * Call to configure this connection to IC.
  103.    * This routine acts as a more general replacement for
  104.    * ICFindConfigFile and ICFindUserConfigFile.
  105.    * Set search_prefs to true if you want it to search the preferences folder.
  106.    * Set can_create to true if you want it to be able to create a new config.
  107.    * Set count as the number of valid elements in folders.
  108.    * Set folders to a pointer to the folders to search.
  109.    * Setting count to 0 and folders to nil is OK.
  110.    * Searches the specified folders and then optionally the Preferences folder
  111.    * in a unspecified manner.
  112.    */
  113.  
  114. pascal ICError ICChooseConfig(ICInstance inst);
  115.   /* Requires IC 1.2.
  116.    * It is illegal to call this routine inside a ICBegin/End pair.
  117.    * Requests the user to choose a configuration, typically using some
  118.    * sort of modal dialog. If the user cancels the dialog the configuration
  119.    * state will be unaffected.
  120.    */
  121.  
  122. pascal ICError ICChooseNewConfig(ICInstance inst);
  123.   /* Requires IC 1.2.
  124.    * It is illegal to call this routine inside a ICBegin/End pair.
  125.    * Requests the user to create a new configuration, typically using some
  126.    * sort of modal dialog. If the user cancels the dialog the configuration
  127.    * state will be unaffected.
  128.    */
  129.  
  130. pascal ICError ICGetConfigName(ICInstance inst, Boolean longname, Str255 name);
  131.   /* Requires IC 1.2.
  132.    * You must specify a configuration before calling this routine.
  133.    * Returns a string that describes the current configuration at a user
  134.    * level. Set longname to true if you want a long name, up to 255
  135.    * characters, or false if you want a short name, typically about 32
  136.    * characters.
  137.    * The returned string is for user display only. If you rely on the
  138.    * exact format of it, you will conflict with any future IC
  139.    * implementation that doesn't use explicit preference files.
  140.    */
  141.  
  142. pascal ICError ICGetConfigReference(ICInstance inst, ICConfigRefHandle ref);
  143.   /* Requires IC 1.2.
  144.    * You must specify a configuration before calling this routine.
  145.    * Returns a self-contained reference to the instance's current
  146.    * configuration.
  147.    * ref must be a valid non-nil handle and it will be resized to fit the
  148.    * resulting data.
  149.    */
  150.  
  151. pascal ICError ICSetConfigReference(ICInstance inst, ICConfigRefHandle ref, long flags);
  152.   /* Requires IC 1.2.
  153.    * It is illegal to call this routine inside a ICBegin/End pair.
  154.    * Reconfigures the instance using a configuration reference that was
  155.    * got using ICGetConfigReference reference. Set the
  156.    * icNoUserInteraction_bit in flags if you require that this routine
  157.    * not present a modal dialog. Other flag bits are reserved and should
  158.    * be set to zero.
  159.    * ref must not be nil.
  160.    */
  161.  
  162. pascal ICError ICSpecifyConfigFile(ICInstance inst, FSSpec *config);
  163.   /* It is illegal to call this routine inside a ICBegin/End pair.
  164.    * For use only by the IC application.
  165.    * If you call this routine yourself, you will conflict with any
  166.    * future IC implementation that doesn't use explicit preference files.
  167.    */
  168.  
  169. /* ***** Getting Information ***** */
  170.  
  171. pascal ICError ICGetSeed(ICInstance inst, long *seed);
  172.   /* You do not have to specify a configuration before calling this routine.
  173.    * You do not have to be inside an ICBegin/End pair to call this routine.
  174.    * Returns the current seed for the IC prefs database.
  175.    * This seed changes each time a non-volatile preference is changed.
  176.    * You can poll this to determine if any cached preferences change.
  177.    */
  178.  
  179. pascal ICError ICGetPerm(ICInstance inst, ICPerm *perm);
  180.   /* You do not have to specify a configuration before calling this routine.
  181.    * Returns the access permissions currently associated with this instance.
  182.    * While applications normally know what permissions they have,
  183.    * this routine is designed for use by override components.
  184.    */
  185.  
  186. pascal ICError ICDefaultFileName(ICInstance inst, Str63 name);
  187.   /* You do not have to specify a configuration before calling this routine.
  188.    * You do not have to be inside an ICBegin/End pair to call this routine.
  189.    * Returns the default file name for IC preference files.
  190.    * Applications should never need to call this routine.
  191.    * If you rely on information returned by this routine yourself,
  192.    * you may conflict with any future IC implementation that doesn't use
  193.    * explicit preference files.
  194.    * The component calls this routine to set up the default IC file name.
  195.    * This allows this operation to be intercepted by a component that has
  196.    * captured us. It currently gets it from the component resource file.
  197.    * The glue version is hardwired to "Internet Preferences".
  198.    */
  199.  
  200. pascal ICError ICGetComponentInstance(ICInstance inst, Ptr *component_inst);
  201.   /* Requires IC 1.2.
  202.    * You do not have to specify a configuration before calling this routine.
  203.    * You do not have to be inside an ICBegin/End pair to call this routine.
  204.    * Returns noErr and the connection to the IC component,
  205.    * if we're using the component.
  206.    * Returns badComponenInstance and nil if we're operating with glue.
  207.    * The component_inst parameter is a universal pointer to avoid
  208.    * us having to include Component.[ph] (which is not available under
  209.    * some development environments) in order to use IC.
  210.    */
  211.  
  212. /* ***** Reading and Writing Preferences ***** */
  213.  
  214. pascal ICError ICBegin(ICInstance inst, ICPerm perm);
  215.   /* You must specify a configuration before calling this routine.
  216.    * It is illegal to call this routine inside a ICBegin/End pair.
  217.    * Starting reading or writing multiple preferences.
  218.    * A call to this must be balanced by a call to ICEnd.
  219.    * Do not call WaitNextEvent between these calls.
  220.    * The perm specifies whether you intend to read or read/write.
  221.    * Only one writer is allowed per instance.
  222.    * Note that this may open resource files that are not closed
  223.    * until you call ICEnd.
  224.    */
  225.  
  226. pascal ICError ICGetPref(ICInstance inst, ConstStr255Param key, ICAttr *attr, Ptr buf, long *size);
  227.   /* You must specify a configuration before calling this routine.
  228.    * If you are getting or setting multiple preferences, you should place
  229.    * these calls within an ICBegin/ICEnd pair.
  230.    * If you call this routine outside of such a pair, it implicitly
  231.    * calls ICBegin(inst, icReadOnlyPerm).
  232.    * Reads the preference specified by key from the IC database to the
  233.    * buffer pointed to by buf and size.
  234.    * key must not be the empty string.
  235.    * If buf is nil then no data is returned.
  236.    * size must be non-negative.
  237.    * attr and size are always set on return. On errors (except icTruncatedErr)
  238.    * attr is set to ICattr_no_change and size is set to 0.
  239.    * size is the actual size of the data.
  240.    * attr is set to the attributes associated with the preference.
  241.    * If this routine returns icTruncatedErr then the other returned
  242.    * values are valid except that only the first size bytes have been
  243.    * return. size is adjusted to reflect the true size of the preference.
  244.    * Returns icPrefNotFound if there is no preference for the key.
  245.    */
  246.  
  247. pascal ICError ICSetPref(ICInstance inst, ConstStr255Param key, ICAttr attr, Ptr buf, long size);
  248.   /* You must specify a configuration before calling this routine.
  249.    * If you are getting or setting multiple preferences, you should place
  250.    * these calls within an ICBegin/ICEnd pair.
  251.    * If you call this routine outside of such a pair, it implicitly
  252.    * calls ICBegin(inst, icReadWritePerm).
  253.    * Sets the preference specified by key from the IC database to the
  254.    * value pointed to by buf and size.
  255.    * key must not be the empty string.
  256.    * size must be non-negative. 
  257.    * If buf is nil then the preference value is not set and size is ignored.
  258.    * If buf is not nil then the preference value is set to the size
  259.    * bytes pointed to by buf.
  260.    * If attr is ICattr_no_change then the preference attributes are not set.
  261.    * Otherwise the preference attributes are set to attr.
  262.    * Returns icPermErr if the previous ICBegin was passed icReadOnlyPerm.
  263.    * Returns icPermErr if current attr is locked, new attr is locked and buf <> nil.
  264.    */
  265.  
  266. pascal ICError ICFindPrefHandle(ICInstance inst, ConstStr255Param key, ICAttr *attr, Handle prefh);
  267.   /* Requires IC 1.2.
  268.    * You must specify a configuration before calling this routine.
  269.    * If you are getting or setting multiple preferences, you should place
  270.    * these calls within an ICBegin/ICEnd pair.
  271.    * If you call this routine outside of such a pair, it implicitly
  272.    * calls ICBegin(inst, icReadWritePerm).
  273.    * This routine effectively replaces ICGetPrefHandle.
  274.    * Reads the preference specified by key from the IC database into
  275.    * a handle, prefh.
  276.    * key must not be the empty string.
  277.    * attr is set to the attributes associated with the preference.
  278.    * You must set prefh to a non-nil handle before calling this routine.
  279.    * If the preference does not exist, icPrefNotFoundErr is returned.
  280.    */
  281.  
  282. pascal ICError ICGetPrefHandle(ICInstance inst, ConstStr255Param key, ICAttr *attr, Handle *prefh);
  283.   /* Requires IC 1.1.
  284.    * You must specify a configuration before calling this routine.
  285.    * If you are getting or setting multiple preferences, you should place
  286.    * these calls within an ICBegin/ICEnd pair.
  287.    * If you call this routine outside of such a pair, it implicitly
  288.    * calls ICBegin(inst, icReadOnlyPerm).
  289.    * This routine is now obsolete. Use ICFindPrefHandle instead.
  290.    * Reads the preference specified by key from the IC database into
  291.    * a newly created handle, prefh.
  292.    * key must not be the empty string.
  293.    * attr is set to the attributes associated with the preference.
  294.    * The incoming value of prefh is ignored.
  295.    * A new handle is created in the current heap and returned in prefh.
  296.    * If the routine returns an error, prefh is set to nil.
  297.    * If the preference does not exist, no error is returned and prefh is set
  298.    * to an empty handle.
  299.    */
  300.  
  301. pascal ICError ICSetPrefHandle(ICInstance inst, ConstStr255Param key, ICAttr attr, Handle prefh);
  302.   /* Requires IC 1.1.
  303.    * You must specify a configuration before calling this routine.
  304.    * If you are getting or setting multiple preferences, you should place
  305.    * these calls within an ICBegin/ICEnd pair.
  306.    * If you call this routine outside of such a pair, it implicitly
  307.    * calls ICBegin(inst, icReadWritePerm).
  308.    * Sets the preference specified by key from the IC database to the
  309.    * value contained in prefh.
  310.    * key must not be the empty string.
  311.    * If prefh is nil then the preference value is not set.
  312.    * If buf is not nil then the preference value is set to the data
  313.    * contained in it.
  314.    * If attr is ICattr_no_change then the preference attributes are not set.
  315.    * Otherwise the preference attributes are set to attr.
  316.    * Returns icPermErr if the previous ICBegin was passed icReadOnlyPerm.
  317.    * Returns icPermErr if current attr is locked, new attr is locked and prefh <> nil.
  318.    */
  319.  
  320. pascal ICError ICCountPref(ICInstance inst, long *count);
  321.   /* You must specify a configuration before calling this routine.
  322.    * You must be inside an ICBegin/End pair to call this routine.
  323.    * Counts the total number of preferences.
  324.    * If the routine returns an error, count is set to 0.
  325.    */
  326.  
  327. pascal ICError ICGetIndPref(ICInstance inst, long n, Str255 key);
  328.   /* You must specify a configuration before calling this routine.
  329.    * You must be inside an ICBegin/End pair to call this routine.
  330.    * Returns the key of the Nth preference.
  331.    * n must be positive.
  332.    * Returns icPrefNotFoundErr if n is greater than the total number of preferences.
  333.    * If the routine returns an error, key is undefined.
  334.    */
  335.  
  336. pascal ICError ICDeletePref(ICInstance inst, ConstStr255Param key);
  337.   /* You must specify a configuration before calling this routine.
  338.    * You must be inside an ICBegin/End pair to call this routine.
  339.    * Deletes the preference specified by key.
  340.    * key must not be the empty string.
  341.    * Returns icPrefNotFound if the preference specified by key is not present.
  342.    */
  343.  
  344. pascal ICError ICEnd(ICInstance inst);
  345.   /* You must specify a configuration before calling this routine.
  346.    * You must be inside an ICBegin/End pair to call this routine.
  347.    * Terminates a preference session, as started by ICBegin.
  348.    * You must have called ICBegin before calling this routine.
  349.    */
  350.  
  351. /* ***** User Interface Stuff ***** */
  352.  
  353. pascal ICError ICEditPreferences(ICInstance inst, ConstStr255Param key);
  354.   /* Requires IC 1.1.
  355.    * You must specify a configuration before calling this routine.
  356.    * You do not have to be inside an ICBegin/End pair to call this routine.
  357.    * Instructs IC to display the user interface associated with editing
  358.    * preferences and focusing on the preference specified by key.
  359.    * If key is the empty string then no preference should be focused upon.
  360.    * You must have specified a configuration before calling this routine.
  361.    * You do not need to call ICBegin before calling this routine.
  362.    * In the current implementation this launches the IC application
  363.    * (or brings it to the front) and displays the window containing
  364.    * the preference specified by key.
  365.    * It may have a radically different implementation in future
  366.    * IC systems.
  367.    */
  368.  
  369. /* ***** URL Handling ***** */
  370.  
  371. pascal ICError ICParseURL(ICInstance inst, ConstStr255Param hint, Ptr data, long len, long *selStart, long *selEnd, Handle url);
  372.   /* Requires IC 1.1.
  373.    * You must specify a configuration before calling this routine.
  374.    * You do not have to be inside an ICBegin/End pair to call this routine.
  375.    * Parses a URL out of the specified text and returns it in a canonical form
  376.    * in a handle.
  377.    * hint indicates the default scheme for URLs of the form "name@address".
  378.    * If hint is the empty string then URLs of that form are not allowed.
  379.    * data points to the start of the text. It must not be nil.
  380.    * len indicates the length of the text. It must be non-negative.
  381.    * selStart and selEnd should be passed in as the current selection of
  382.    * the text. This selection is given in the same manner as TextEdit,
  383.    * ie if selStart = selEnd then there is no selection only an insertion
  384.    * point. Also selStart イ selEnd and 0 イ selStart イ len and 0 イ selEnd イ len.
  385.    * selStart and selEnd are returned as the bounds of the URL. If the
  386.    * routine returns an error then these new boundaries may be
  387.    * invalid but they will be close.
  388.    * The incoming url handle must not be nil.  The resulting URL is normalised
  389.    * and copied into the url handle, which is resized to fit.
  390.    */
  391.  
  392. pascal ICError ICLaunchURL(ICInstance inst, ConstStr255Param hint, Ptr data, long len, long *selStart, long *selEnd);
  393.   /* Requires IC 1.1.
  394.    * You must specify a configuration before calling this routine.
  395.    * You do not have to be inside an ICBegin/End pair to call this routine.
  396.    * Parses a URL out of the specified text and feeds it off to the
  397.    * appropriate helper.
  398.    * hint indicates the default scheme for URLs of the form "name@address".
  399.    * If hint is the empty string then URLs of that form are not allowed.
  400.    * data points to the start of the text. It must not be nil.
  401.    * len indicates the length of the text. It must be non-negative.
  402.    * selStart and selEnd should be passed in as the current selection of
  403.    * the text. This selection is given in the same manner as TextEdit,
  404.    * ie if selStart = selEnd then there is no selection only an insertion
  405.    * point. Also selStart イ selEnd and 0 イ selStart イ len and 0 イ selEnd イ len.
  406.    * selStart and selEnd are returned as the bounds of the URL. If the
  407.    * routine returns an error then these new boundaries may be
  408.    * invalid but they will be close.
  409.    * The URL is parsed out of the text and passed off to the appropriate
  410.    * helper using the GURL AppleEvent.
  411.    */
  412.  
  413. /* ***** Mappings Routines *****
  414.  * 
  415.  * Routines for interrogating mappings database.
  416.  * 
  417.  * ----- High Level Routines -----
  418.  */
  419.  
  420. pascal ICError ICMapFilename(ICInstance inst, ConstStr255Param filename, ICMapEntry *entry);
  421.   /* Requires IC 1.1.
  422.    * You must specify a configuration before calling this routine.
  423.    * If you are getting or setting multiple preferences, you should place
  424.    * these calls within an ICBegin/ICEnd pair.
  425.    * If you call this routine outside of such a pair, it implicitly
  426.    * calls ICBegin(inst, icReadWritePerm).
  427.    * Takes the name of an incoming file and returns the most appropriate
  428.    * mappings database entry, based on its extension.
  429.    * filename must not be the empty string.
  430.    * Returns icPrefNotFoundErr if no suitable entry is found.
  431.    */
  432.  
  433. pascal ICError ICMapTypeCreator(ICInstance inst, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry);
  434.   /* Requires IC 1.1.
  435.    * You must specify a configuration before calling this routine.
  436.    * You must be inside an ICBegin/End pair to call this routine.
  437.    * Takes the type and creator (and optionally the name) of an outgoing
  438.    * file and returns the most appropriate mappings database entry.
  439.    * The filename may be either the name of the outgoing file or
  440.    * the empty string.
  441.    * Returns icPrefNotFoundErr if no suitable entry found.
  442.    */
  443.  
  444. /* ----- Mid Level Routines ----- */
  445.  
  446. pascal ICError ICMapEntriesFilename(ICInstance inst, Handle entries, ConstStr255Param filename, ICMapEntry *entry);
  447.   /* Requires IC 1.1.
  448.    * You must specify a configuration before calling this routine.
  449.    * You do not have to be inside an ICBegin/End pair to call this routine.
  450.    * Takes the name of an incoming file and returns the most appropriate
  451.    * mappings database entry, based on its extension.
  452.    * entries must be a handle to a valid IC mappings database preference.
  453.    * filename must not be the empty string.
  454.    * Returns icPrefNotFoundErr if no suitable entry is found.
  455.    */
  456.  
  457. pascal ICError ICMapEntriesTypeCreator(ICInstance inst, Handle entries, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry);
  458.   /* Requires IC 1.1.
  459.    * You must specify a configuration before calling this routine.
  460.    * You do not have to be inside an ICBegin/End pair to call this routine.
  461.    * Takes the type and creator (and optionally the name) of an outgoing
  462.    * file and returns the most appropriate mappings database entry.
  463.    * entries must be a handle to a valid IC mappings database preference.
  464.    * The filename may be either the name of the outgoing file or
  465.    * the empty string.
  466.    * Returns icPrefNotFoundErr if no suitable entry found.
  467.    */
  468.  
  469. /* ----- Low Level Routines ----- */
  470.  
  471. pascal ICError ICCountMapEntries(ICInstance inst, Handle entries, long *count);
  472.   /* Requires IC 1.1.
  473.    * You must specify a configuration before calling this routine.
  474.    * You do not have to be inside an ICBegin/End pair to call this routine.
  475.    * Counts the number of entries in the mappings database.
  476.    * entries must be a handle to a valid IC mappings database preference.
  477.    * count is set to the number of entries.
  478.    */
  479.  
  480. pascal ICError ICGetIndMapEntry(ICInstance inst, Handle entries, long ndx, long *pos, ICMapEntry *entry);
  481.   /* Requires IC 1.1.
  482.    * You must specify a configuration before calling this routine.
  483.    * You do not have to be inside an ICBegin/End pair to call this routine.
  484.    * Gets the ndx'th entry in the mappings database.
  485.    * entries must be a handle to a valid IC mappings database preference.
  486.    * ndx must be in the range from 1 to the number of entries in the database.
  487.    * The value of pos is ignored on input. pos is set to the position of
  488.    * the ndx'th entry in the database and is suitable for passing back
  489.    * into ICSetMapEntry.
  490.    * Does not return any user data associated with the entry.
  491.    */
  492.  
  493. pascal ICError ICGetMapEntry(ICInstance inst, Handle entries, long pos, ICMapEntry *entry);
  494.   /* Requires IC 1.1.
  495.    * You must specify a configuration before calling this routine.
  496.    * You do not have to be inside an ICBegin/End pair to call this routine.
  497.    * Returns the entry located at position pos in the mappings database.
  498.    * entries must be a handle to a valid IC mappings database preference.
  499.    * pos should be 0 to get the first entry. To get the subsequent entries, add
  500.    * entry.total_size to pos and iterate.
  501.    * Does not return any user data associated with the entry.
  502.    */
  503.  
  504. pascal ICError ICSetMapEntry(ICInstance inst, Handle entries, long pos, ICMapEntry *entry);
  505.   /* Requires IC 1.1.
  506.    * You must specify a configuration before calling this routine.
  507.    * You do not have to be inside an ICBegin/End pair to call this routine.
  508.    * Sets the entry located at position pos in the mappings database.
  509.    * entries must be a handle to a valid IC mappings database preference.
  510.    * pos should be either a value returned from ICGetIndMapEntry or a value
  511.    * calculated using ICGetMapEntry.
  512.    * entry is a var parameter purely for stack space reasons. It is not
  513.    * modified in any way.
  514.    * Any user data associated with the entry is unmodified.
  515.    */
  516.  
  517. pascal ICError ICDeleteMapEntry(ICInstance inst, Handle entries, long pos);
  518.   /* Requires IC 1.1.
  519.    * You must specify a configuration before calling this routine.
  520.    * You do not have to be inside an ICBegin/End pair to call this routine.
  521.    * Deletes the mappings database entry at pos.
  522.    * entries must be a handle to a valid IC mappings database preference.
  523.    * pos should be either a value returned from ICGetIndMapEntry or a value
  524.    * calculated using ICGetMapEntry.
  525.    * Also deletes any user data associated with the entry.
  526.    */
  527.  
  528. pascal ICError ICAddMapEntry(ICInstance inst, Handle entries, ICMapEntry *entry);
  529.   /* Requires IC 1.1.
  530.    * You must specify a configuration before calling this routine.
  531.    * You do not have to be inside an ICBegin/End pair to call this routine.
  532.    * Adds an entry to the mappings database.
  533.    * entries must be a handle to a valid IC mappings database preference.
  534.    * The entry is added to the end of the entries database.
  535.    * No user data is added.
  536.    */
  537.  
  538.  
  539. /* ・・・End ICAPI.h・・・ */
  540.  
  541. #ifdef __cplusplus
  542. }
  543. #endif __cplusplus
  544.  
  545. #endif
  546.